package com.neusoft.neuiotms.dcam.common.service;

import java.util.List;

import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.web.multipart.MultipartFile;

import com.neusoft.bizcore.web.support.Searchable;
import com.neusoft.neuiotms.dcam.common.dto.ManufacturerDTO;

public interface ManufacturerService {

    List<ManufacturerDTO> findAll();

    Page<ManufacturerDTO> search(Pageable pageable, Searchable searchable);

    ManufacturerDTO create(ManufacturerDTO dto);

    ManufacturerDTO details(Long id);

    void delete(Long id);

    ManufacturerDTO update(Long id, ManufacturerDTO dto);

    String upload(MultipartFile file);

    Workbook template();

    void updateStatus(Long id, boolean status);

    boolean nameExisted(String name);
}
